package com.bio.service.user.impl;

import com.bio.dao.user.UsertypeDao;
import com.bio.entity.user.Usertype;
import com.bio.service.impl.AbstractService;
import com.bio.service.user.UsertypeService;
import com.bio.utils.Pager;
import com.bio.utils.Pagination;

public class UsertypeServiceImpl extends AbstractService<Usertype, UsertypeDao> implements UsertypeService{

	public UsertypeServiceImpl(UsertypeDao dao) {
		super(dao);
	}

	@Override
	public Pager<Usertype> findPagerByCompanyId(Pagination pagination,
			Long companyId) {
		return dao.findPagerByCompanyId(pagination, companyId);
	}

	@Override
	public Usertype getByNameAndCompany(String name, Long companyId, Long id) {
		return dao.getByNameAndCompany(name, companyId, id);
	}

}
